<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>管理员页面</title>
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../js/easyui/demo/demo.css">
	<script type="text/javascript" src="../js/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>

	<script type="text/javascript" src="../js/administrators/administrators.js"></script>
</head>

<body class="easyui-layout">

<div data-options="region:'center'">
	<div class="easyui-layout" data-options="fit:true">

		<div data-options="region:'west'" style="width:180px;">
			<div id="accordionid" class="easyui-accordion" style="width: 100%;">
				<div title="用户管理" style="overflow:auto;padding:10px;">
					<a onclick="add_user()" class="easyui-linkbutton" style="width: 100%;">账号新增</a>
					<a onclick="addexcel_user()" class="easyui-linkbutton" style="width: 100%;">批量新增</a>
					<a onclick="deluser()" class="easyui-linkbutton" style="width: 100%;">删除用户</a>
					<a onclick="recovery()" class="easyui-linkbutton" style="width: 100%;">初始化用户密码</a>
				</div>
				<div title="部门管理" style="overflow:auto;padding:10px;">
					<a onclick="deptMag()" class="easyui-linkbutton" style="width: 100%;">学院管理</a>
					<a onclick="" class="easyui-linkbutton" style="width: 100%;">专业管理</a>
				</div>
				<div title="" selected style="padding:10px;"></div>
			</div>

		</div>
		<div  data-options="region:'center'" >
			<!--用户管理-->
			<div id="User" style="width: 100%;height: 100%;">
				<!--账号新增加-->
				<div id="showUser">
					<div id="tt" class="easyui-tabs">
						<div id="inputmsg" title="账号信息" style="width: 100%;height: 100%;">
							<div id="input_main" style="margin-top: 25px;text-align: center;">
								<div>
									<table width="1000px">
										<tr height="10px"></tr>

										<tr>
											<td>　　　用户名称:<input id="userName" class="easyui-textbobox" style="width:154px;">
											</td>

											<td>　　　账号类型:
												<select id="zhlx" class="easyui-combobox" name="YWType" style="width:158px;" value="">
													<option value=""></option>
													<option value="0">管理员</option>
													<option value="1">老师</option>
												</select>
											</td>

										</tr>
										<tr>
											<td>　　　登陆账号:
												<input id="dlzh" class="easyui-textbobox" name="HYType" style="width:154px;">
											</td>

											<td>
												<a onclick="find()" class="easyui-linkbutton">查找用户</a>
											</td>
										</tr>

									</table>
								</div>

								<div class="datagridbody" id="div33" style="margin-top: 25px;">
									<table id="box" style="font-size: 14px;"></table>
								</div>

								<!-- 隐藏弹窗 -->
								<div id="user_add" closed="true" class="easyui-window" title="新增" style="width:790px;height:300px;display: none;" data-options="modal:true">

									<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
										<tr height="10px"></tr>
										<tr>
											<td>　　　登陆账号:
												<input id="dlzh_input" class="easyui-textbobox" name="HYType" style="width:154px;">
											</td>
											<td>　　　用户名称:<input id="userName_input" class="easyui-textbobox" style="width:154px;">
											</td>
										</tr>


										<tr height="10px"></tr>
										<tr>
											<td>　　　账号类型:
												<select id="type_input" class="easyui-combobox" name="YWType" style="width:158px;" value="">
													<option></option>
													<option value="0">管理员</option>
													<option value="1">老师</option>

												</select>
											</td>
										</tr>
									</table>
									<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
										<tr>
											<td width="280px"></td>
											<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="user_add_save()" value="保存" /></td>
											<td width="15px"></td>
											<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="gb('user_add')" value="关闭" /></td>
										</tr>
									</table>
								</div>

								<div id="addexcel_user" closed="true" class="easyui-window" title="批量新增" style="width:490px;height:160px;display: none;" data-options="modal:true">
									<div>
										<table>
											<tr>
											<tr height="40px">

											</tr>
											<td width="50px"></td>
											<td>
												<form id="exceladd_user"  method="post" enctype="multipart/form-data">
													<input id="excel" name="excel" class="easyui-filebox" style="width:200px" data-options="buttonText:'浏览',prompt:'请选择文件...'">
												</form>
											</td>

											<td>
												<a  id = "booten" onclick="uploadAddexcel_user()" class="easyui-linkbutton">上传</a>
											</td>

											<td>
												<a  id = "booten2" onclick="downloadTemplate_excel()" class="easyui-linkbutton">下载模板</a>
											</td>
											</tr>

										</table>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!--部门管理-->
			<div id="manageDept"style="width: 100%;height: 100%;">
				<div id="tt2" class="easyui-tabs">
					<!--
                        作者：offline
                        时间：2019-02-19
                        描述：部门管理
                    -->
					<div id="colmsg" title="部门信息" style="width: 100%;height: 100%;">
						<!--
                            作者：offline
                            时间：2019-02-19
                            描述：筛选条件
                        -->
						<div>
							<table width="1000px">
								<tr height="20px"></tr>


								<tr>
									<td width="50px"></td>
									<td><a onclick="showaddcol()" class="easyui-linkbutton">增加部门</a><span style="width: 20px;"></span>
										<a onclick="showeditcol()" class="easyui-linkbutton">修改部门</a>
										<a onclick="delcol()" class="easyui-linkbutton">删除部门</a>
									</td>
								</tr>
							</table>
						</div>
						<div class="datagridbody" id="divCol" style="margin-top: 25px;">
							<table id="boxCol" style="font-size: 14px;"></table>
						</div>

					</div>
					<div id="deptmsg" title="专业信息"  style="width: 100%;height: 100%;">

						<div>
							<table width="1000px">
								<tr height="20px"></tr>
								<tr>
									<td width="50px"></td>
									<td><a onclick="showadddept()" class="easyui-linkbutton">增加专业</a><span style="width: 20px;"></span>
										<a onclick="showeditdept()" class="easyui-linkbutton">修改专业</a>
										<a onclick="deldept()" class="easyui-linkbutton">删除专业</a>
									</td>
								</tr>
							</table>
						</div>


						<div class="datagridbody" id="divDept" style="margin-top: 25px;">
							<table id="boxDept" style="font-size: 14px;"></table>
						</div>
					</div>
				</div>
				<div id="addcol" closed="true" class="easyui-window" title="新增" style="width:400px;height:200px;display: none;" data-options="modal:true">
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td>部门(学院)名称：</td><td><input id="addcolname" /></td>

						</tr>
					</table>
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td width="50px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="col_add_save()" value="保存" /></td>
							<td width="15px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="gb('addcol')" value="关闭" /></td>
						</tr>
					</table>
				</div>

				<div id="adddept" closed="true" class="easyui-window" title="新增" style="width:600px;height:200px;display: none;" data-options="modal:true">
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td>专业名称：</td><td><input id="adddeptname" /></td>

							<td>所属学院：</td><td><input id="adddeptscol" type="text" class="easyui-combobox" required="required" style="width:154px;height:25px" /></td>
						</tr>
					</table>
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td width="50px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="dept_add_save()" value="保存" /></td>
							<td width="15px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="gb('adddept')" value="关闭" /></td>
						</tr>
					</table>
				</div>

				<div id="editdept" closed="true" class="easyui-window" title="修改" style="width:600px;height:200px;display: none;" data-options="modal:true">
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<input id="editdepid" hidden="hidden"/>
						<tr>
							<td>专业名称：</td><td><input id="editdeptname" /></td>
							<td>所属学院：</td><td><input id="editdeptscol" type="text" class="easyui-combobox" required="required" style="width:154px;height:25px" /></td>
						</tr>
					</table>
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td width="50px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="dept_edit_save()" value="保存" /></td>
							<td width="15px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="gb('editdept')" value="关闭" /></td>
						</tr>
					</table>
				</div>

				<div id="editcol" closed="true" class="easyui-window" title="修改" style="width:400px;height:200px;display: none;" data-options="modal:true">
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td>部门(学院)名称：</td><td><input id="editcolname" /></td>
							<input id="editcolid" hidden="hidden"/>
						</tr>
					</table>
					<table style="margin-top: 25px;margin-left: 25px;font-size: 12px;text-align: center;">
						<tr>
							<td width="50px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="col_edit_save()" value="保存" /></td>
							<td width="15px"></td>
							<td><input  type="button" class="btn-primary" style="background-color: #0088CC; color: white;" onclick="gb('editcol')" value="关闭" /></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div data-options="region:'south'" style="height:30px;background-image: url(static/img/index_bgright.gif);">

	</div>
</div>
</body>

</html>